// app.js
import navigateHelper from './src/common/navigateHelper';
import ActionDispatcher from './yali-sdk/utils/ActionDispatcher';
global.navigateHelper = navigateHelper;
App({
  onLaunch() {
    const that = this;
    wx.getSystemInfo({
      success(res) {
        that.globalData.window_height = res.windowHeight;
        that.globalData.window_width = res.windowWidth;
      },
    });
    const Core = {
      apiBase: 'https://www.nlido.com',
      domain: 'mp.mini1.xinpear.net'
    }
    const actionDispatcher = new ActionDispatcher(Core);
    global.ActionDispatcher = actionDispatcher;
  },
  globalData: {
    window_height: null,
    window_width: 375,
  }
});
